<?php



class OpeningEndingMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.OpeningEndingMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('opening_ending');
		$tMap->setPhpName('OpeningEnding');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('VIDEO_ID', 'VideoId', 'int', CreoleTypes::INTEGER, 'video', 'ID', true, null);

		$tMap->addColumn('TIPO', 'Tipo', 'string', CreoleTypes::CHAR, true, 1);

		$tMap->addColumn('DIRECCION', 'Direccion', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('ORDEN', 'Orden', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('TITULO', 'Titulo', 'string', CreoleTypes::VARCHAR, true, 250);

		$tMap->addColumn('GRUPO', 'Grupo', 'string', CreoleTypes::VARCHAR, true, 250);

	} 
} 